#ifndef __TOUCHSCREEN_H
#define __TOUCHSCREEN_H

typedef struct _TOUCHSCREEN_INFO{
	u32 TS_LastTime;
	u16 CpuTouchX;
	u16 CpuTouchY;
	u16 CpuZ1;
	
	u8 TouchPressed ;
	u8 TouchPressedOld;
	u8 TouchDown ;
	u8 TouchStep ;
	u8 FLAG_TOUCH ;
	u8 TouchChanged;
	u8 TouchChangedOld;
	
	u16 PosX;
	u16 PosY;
	u8 TouchStatus;
	u8 LastTouchStatus;
}TOUCHSCREEN_INFO;

extern TOUCHSCREEN_INFO tsInfo;

extern void TS_Init(void);
extern void TS_dect(void);

extern void TSFreeIdleProc(void);

#endif

